<?php

require_once dirname(__FILE__).'/../lib/specialityGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/specialityGeneratorHelper.class.php';

/**
 * speciality actions.
 *
 * @package    docplus.co.za
 * @subpackage speciality
 * @author     Fox Matuku
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class specialityActions extends autoSpecialityActions
{
	public function preExecute() {
		$this->getUser()->setCurrentRoute("configuration");
		parent::preExecute();
	}
    
    /**
     * Executes more action
     *
     * @param sfRequest $request A request object
     */
    public function executeMore(sfWebRequest $request)
    {
        $this->specialities = SpecialityTable::getInstance()->retrieveByIsActive();
    }
}

